# $OpenBSD: Makefile,v 1.17 2016/04/08 09:23:13 sthen Exp $

COMMENT =		stylish PDF presentation generator

MODPY_EGG_VERSION =	0.11.1
DISTNAME =		Impressive-${MODPY_EGG_VERSION}
PKGNAME =		impressive-${MODPY_EGG_VERSION}

CATEGORIES =		productivity
HOMEPAGE =		http://impressive.sourceforge.net/
MASTER_SITES =		${MASTER_SITE_SOURCEFORGE:=impressive/}

# GPLv2 only
PERMIT_PACKAGE_CDROM =	Yes

MODULES =		lang/python
NO_BUILD =		Yes
NO_TEST =		Yes

RUN_DEPENDS =		devel/pygame \
			devel/xdg-utils \
			graphics/py-Pillow \
			graphics/py-opengl \
			print/poppler,-utils \
			textproc/pdftk

MODPY_ADJ_FILES =	impressive.py

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/impressive.py ${PREFIX}/bin/impressive
	${INSTALL_MAN} ${WRKSRC}/impressive.1 ${PREFIX}/man/man1/impressive.1
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/impressive
	${INSTALL_DATA} ${WRKSRC}/demo.pdf ${PREFIX}/share/examples/impressive/

.include <bsd.port.mk>
